package com.lib76.DBInfo.model.po.mysql;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.EmbeddedId;
import javax.persistence.Entity;
import javax.persistence.Table;

/**
 * MYSQL数据库表
 * @author 张浩
 * @version 0.0.1
 */
@Entity
@Table(name="TABLES")
public class DatabaseTable {

	@EmbeddedId
	private DatabaseTableKey id;
	@Column(name="CREATE_TIME")
	private Date createDatetime;
	@Column(name="TABLE_COMMENT")
	private String comment;
	
	public DatabaseTableKey getId() {
		return id;
	}
	public void setId(DatabaseTableKey id) {
		this.id = id;
	}
	public String getTableSchema() {
		return id.getTableSchema();
	}
	public String getTableName() {
		return id.getTableName();
	}
	public Date getCreateDatetime() {
		return createDatetime;
	}
	public void setCreateDatetime(Date createDatetime) {
		this.createDatetime = createDatetime;
	}
	public String getComment() {
		return comment;
	}
	public void setComment(String comment) {
		this.comment = comment;
	}
}
